package com.example.module_home;

import android.os.Bundle;
import android.view.View;

import androidx.fragment.app.FragmentManager;

import com.example.module_base_core.baseview.BaseActivity;
import com.example.module_home.databinding.ActivityHomeBinding;

public class HomeActivity extends BaseActivity<ActivityHomeBinding, HomeMode> implements View.OnClickListener {
    private FragmentManager fragmentManager;

    @Override
    public void initParam() {
        super.initParam();
        fragmentManager = getSupportFragmentManager();
        fragmentManager.beginTransaction().replace(R.id.home_fragment, new HomeFragment())
                .commitAllowingStateLoss();
        setTileImmerse(true);

    }

    @Override
    public void onClick(View v) {

    }


    @Override
    protected boolean exit() {
        return false;
    }

    @Override
    public void onMultiClick(View v) {

    }

    @Override
    public int initCView(Bundle savedInstanceState) {
        return R.layout.activity_home;
    }

    @Override
    public int initVM() {
        return BR.homemode;
    }
}
